<div id="headerPage">
    <span>Usuários</span>
</div>
<form method="POST" action="">
    <label>Nome:</label>
    <input type="text" name="CampoBusca" value=""/>
    <input type="submit" value="Buscar" name="busca"/>
    <input type="button" value="Voltar" name="busca" onclick="javascript:location='index.php'"/>
    
</form>
<div id="menu" style="text-align:left; margin:15px 0 10px 23.2%; visibility: hidden;">
	<a id="a1" class="btNoMaginAndLink" title='Editar Usuário' href=''>Editar</a>
	<a id="a2" class="btNoMaginAndLink" title='Editar Permissões' href=''>Permissões</a>
	<a id="a3" class="btNoMaginAndLink" title='Registrar Chave' href=''>Registrar Chave</a>
	<a id="a4" class="btNoMaginAndLink" title='Empréstimo' href=''>Empréstimo</a>
        <a id="a5" class="open-link-delete" title='Excluir' href=''>Excluir</a>
</div>
<table id="table" align="center" class="table">
    <thead align="left">
        <tr>
            <th width="40">Código</th>
            <th width="170">Nome</th>
            <th width="125">Tipo</th>
            <th width="150">Email</th>
        </tr>
     <thead>
     <tbody id="test" align="left">
    <?php
    $i = 0;
    foreach($usuarios as $usuario){
        
    $bgcolor = ($i % 2) == 0 ? 'par' : 'impar';//'#ffffff' : '#e0e0e0';    
    
    echo "<tr class='{$bgcolor}' onclick='clique(this);'>
              <td align=center >{$usuario->id_usuario}</td>
              <td>{$usuario->nome_usuario}</td>
              <td>{$usuario->nome_tipo}</td>
              <td>{$usuario->email_usuario}</td
          </tr>";
    $i = $i+1;
    }    
    
    ?>
    
     </tbody>
</table>

<div id="janela-delete">
    <form id="form-delete" method="POST" action="">
        <span>Deseja deletar este usuário?</span>
    </form>
</div>
